﻿using System;
using System.Collections.Generic;
using System.Text;
using Young3.FMSearch.Core.Entities.GameVersions;
using Young3.FMSearch.Core.Managers;
using Young3.FMSearch.Core.Offsets;
using System.Linq;
using Young3.FMSearch.Core.Attributes;

namespace Young3.FMSearch.Core.Entities.InGame
{
    //[FMType(UseCache = true)]
    public class HumanManager : Staff
    {
        public HumanManager(int memoryAddress, IVersion version)
            : base(memoryAddress, version)
        { }

        public HumanManager(int memoryAddress, ArraySegment<byte> originalBytes, IVersion version)
            : base(memoryAddress, originalBytes, version)
        {}

        public override bool isHuman
        {
            get { return true; }
        }

        [FMEntityAttribute(HumanManagerOffsets.InternationalCaps)]
        public override Byte InternationalCaps { get; set; }

        [FMEntityAttribute(HumanManagerOffsets.InternationalGoals)]
        public override Byte InternationalGoals { get; set; }

        [FMEntityAttribute(HumanManagerOffsets.U21InternationalCaps)]
        public override Byte U21InternationalCaps { get; set; }

        [FMEntityAttribute(HumanManagerOffsets.U21InternationalGoals)]
        public override Byte U21InternationalGoals { get; set; }

        [FMEntityAttribute(HumanManagerOffsets.CurrentReputation)]
        public override Int16 CurrentReputation { get; set; }

        [FMEntityAttribute(HumanManagerOffsets.HomeReputation)]
        public override Int16 HomeReputation { get; set; }

        [FMEntityAttribute(HumanManagerOffsets.WorldReputation)]
        public override Int16 WorldReputation { get; set; }

        [FMPointer(HumanManagerOffsets.SkillsAdress)]
        public override StaffSkills Skills { get; internal set; }
    }
}